package com.yx.changdao.common.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.github.liaochong.myexcel.core.annotation.ExcelColumn;
import com.github.liaochong.myexcel.core.annotation.ExcelModel;
import com.github.liaochong.myexcel.core.annotation.IgnoreColumn;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 商铺导入
 */
@ExcelModel(excludeParent = true, ignoreStaticFields = true)
@Getter
@Setter
public class ImportShopVo {

    @ExcelColumn(index = 0,title = "楼编号")
    private String buildCode;

    @ExcelColumn(index = 1, title = "网格编号")
    @TableField(exist = false)
    private String gridNum;
    /**
     * 门楼牌号
     */
    @ExcelColumn(index = 2, title = "门楼牌号")
    @IgnoreColumn
    private String gatehouseNumber;
    /**
     * 商铺名称
     */
    @ExcelColumn(index = 3, title = "商铺名称")
    private String shopName;
    /**
     * 商铺联系人
     */
    @ExcelColumn(index = 4, title = "商铺联系人")
    private String shopContactPerson;
    /**
     * 手机号码
     */
    @ExcelColumn(index = 5, title = "商铺联系人手机号")
    private String contactPhone;


    @ExcelColumn(index = 6, title = "是否有居住户",mapping = "0:是,1:否")
    private Integer residents;
    /**
     * 经营范围
     */
    @ExcelColumn(index = 7, title = "经营范围")
    private String businessScope;

    @ExcelColumn(index = 8, title = "走访单位")
    private String depName;

    /**
     * 联系人姓名
     */
    private String linkName;

    /**
     * 商铺地址
     */
    private String shopAddress;

    /**
     * 联系人电话
     */
    private String linkPhone;
    /**
     * 联系人身份证
     */
    private String linkIdCard;

    @NotNull(message = "网格不能为空")
    @IgnoreColumn
    private Integer gridId;

}
